package com.android.zing.api;

import java.util.HashMap;
import java.util.List;

import android.text.TextUtils;
import android.util.Log;

import com.android.zing.ZME_Base;

public class ZME_User extends ZME_ASyncGraphAPI {
	private static final String TAG = "ZME_User";

	public ZME_User(ZME_Base zme) {		
		super(zme);
	}

	public void getInfo(List<Integer> uids, String fields,
			final RequestListener listener) {
		
		Log.d(TAG, ">>>> ZME_User :: getMeFriendInfo");
		String endpoint = ZME_Base.GRAPH_BASE_URL + this.ME_FRIEND_INFO_PATH;

		HashMap<String, String> params = new HashMap<String, String>();
		params.put("access_token", zme.getAccessToken());
		params.put("uids", TextUtils.join(",", uids.toArray()));
		params.put("fields", fields);

		request(endpoint, params, listener);
		Log.d(TAG, "<<<< ZME_User :: getMeFriendInfo");
	}
}
